home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17798 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: newton.uncg.edu!news
  2. From: codyax@homans (cody)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Need Help!! BC++ 4.52 DPMI32 problem!
  5. Date: 17 Apr 1996 14:16:11 GMT
  6. Organization: The University of NC at Greensboro
  7. Message-ID: <4l2ufb$68j@newton.uncg.edu>
  8. References: <4krk5j$bq@heracles.net2.kosone.com>
  9. NNTP-Posting-Host: al_cody.uncg.edu
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4krk5j$bq@heracles.net2.kosone.com>, nrgetik@limestone.kosone.com 
  15. says...
  16. >
  17. >HELP!!!
  18. >
  19. >I'm relatively new to C, and am having a strange problem.
  20. >I've just started playing around with protected mode, and have
  21. >been having success with 16-bit pmode stuff.  Whenever I try to
  22. >use 32-bit pmode, I am stopped dead in my tracks.  I'm using
  23. >Borland C++ 4.52, with the Dos PowerPack v1.0
  24. >
  25. >Just as a test, I wrote a simple prog :
  26. >
  27. >#include <stdio.h>
  28. >#include <conio.h>
  29. >
  30. >void main()
  31. >{
  32. >  printf("Hello!");
  33. >  getch();
  34. >}
  35. >
  36. >This compiles fine under DOS(STANDARD) and DOS(16-bit DPMI)
  37. >but when I compile under DOS(32-bit DPMI) I get this error:
  38. >
  39. >This program cannot be run in DOS mode.
  40. >(Load error 85)
  41. >32stub error: The program can not be loaded
  42. >
  43. >
  44. >I checked out Borland's web site (to no avail) and
  45. >cannot find any info on this.
  46. >
  47. >If anyone has seen this before, I would appreciate any
  48. >help or insight.
  49. >
  50. >Thanks in advance.
  51. >-Steve
  52.  Steve, 
  53.         I believe you have used a function not supported by 
  54.  Win32s (Win 95). Check out page 14 of User's Guide for PowerPack.
  55.  There is a table starting on pg.93 that tell which functions are 
  56.  availible under a given os. The offending function is getch().   
  57.  Hope this helps.
  58.       al
  59.  
  60.